const {Router} = require('express')
const app = Router()
const index = require('../controller/index.controller')
const login = require('../controller/login.controller')
const register = require('../controller/register.controller')

app.get('/',index.views)
app.get('/login',login.views)
app.get('/register',register.views)
app.get('/static/vue.js',(req,res)=>{
    res.sendFile(__dirname+'/static/vue.js')
})

app.post('/login',login.login)
app.post('/register',register.register)

module.exports = app